<template>
  <div class="datav_user">
    <div class="datav_user_img">
      <img src="./../../assets/img/index/datav_user_bj.png" alt />
    </div>
    <div class="datav_user_content">
      <p class="datav_part_title">最近下单会员信息</p>
      <div class="datav_user_body">
        <div class="datav_user_item" v-for="(item, i) in dataInfo.lately_order">
          <div class="datav_user_item_img">
            <img
              :src="item.avatar || require('./../../assets/img/ava.jpg')"
              alt
            />
          </div>
          <div class="datav_user_item_p">
            <p>{{ item.name }}</p>
            <p>等级：{{ item.rating_cn }}</p>
            <p>累计消费：{{ $fnc.toFixedZ(item.buy, 0) }}元</p>
          </div>
          <div class="datav_user_item_p">
            <p>推荐人：{{ item.t_name }}</p>
            <p>注册时间：{{ item.created_time | getTimeFormat }}</p>
            <p>下单时间：{{ item.pay_time | getTimeFormat }}</p>
          </div>
        </div>
        <!-- <div class="datav_user_item">
          <div class="datav_user_item_img">
            <img src="./../../assets/img/ava.jpg" alt />
          </div>
          <div class="datav_user_item_p">
            <p>AOO环游世界</p>
            <p>等级：v1级</p>
            <p>累计消费：3890元</p>
          </div>
          <div class="datav_user_item_p">
            <p>推荐人：聚力兽</p>
            <p>注册时间：2010/05/04</p>
            <p>下单时间：2010/05/04</p>
          </div>
        </div>
        <div class="datav_user_item">
          <div class="datav_user_item_img">
            <img src="./../../assets/img/ava.jpg" alt />
          </div>
          <div class="datav_user_item_p">
            <p>AOO环游世界</p>
            <p>等级：v1级</p>
            <p>累计消费：3890元</p>
          </div>
          <div class="datav_user_item_p">
            <p>推荐人：聚力兽</p>
            <p>注册时间：2010/05/04</p>
            <p>下单时间：2010/05/04</p>
          </div>
        </div> -->
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "datav_user",
  data() {
    return {};
  },
  props: {
    dataInfo: {
      type: Object,
      default: {}
    }
  },
  components: {},
  methods: {}
};
</script>
<style lang="less" scoped>
.datav_user {
  width: 100%;
  position: relative;
  .datav_user_img {
    width: 100%;
    img {
      // width: 100%;
      height: 100%;
    }
  }
  .datav_user_content {
    width: 100%;
    padding: 10px 15px 20px 15px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-flow: column;
    .datav_user_body {
      width: 100%;
      flex: 1;
      display: flex;
      flex-flow: column;
      justify-content: space-between;
      align-items: flex-start;
      padding-top: 20px;
      @media only screen and (min-width: 1680px) and (max-width: 1920px) {
        font-size: 14px;
      }
      @media only screen and (min-width: 1440px) and (max-width: 1680px) {
        font-size: 12px;
      }
      @media only screen and (min-width: 1024px) and (max-width: 1440px) {
        font-size: 10px;
      }
      @media only screen and (max-width: 1024px) {
        font-size: 8px;
      }
      .datav_user_item {
        width: 100%;
        height: 30%;
        padding: 10px 20px;
        border: 1px solid #114589;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;

        .datav_user_item_img {
          // width: 25%;
          // height: 100%;
          margin-right: 20px;
          img {
            width: 50px;
            border-radius: 10px;
          }
        }
        > .datav_user_item_p:nth-of-type(1) {
        }
        > .datav_user_item_p:nth-of-type(2) {
          // width: 40%;
        }
        .datav_user_item_p {
          width: 40%;
          display: flex;
          flex-flow: column;
          height: 100%;
          justify-content: space-between;
          align-items: flex-start;
          padding: 5px 0;
          p {
            line-height: 1;
            color: #ffffff;
            width: 100%;
            text-align: left;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
          }
        }
      }
    }
  }
}
</style>
